package main.java.design.decorator;

/**
 * <p>
 *     具体装饰者角色（ConcreteDecorator）：动态地添加职责的对象。
 * </p>
 *
 * @author : wangdejian
 * @version 1.0
 * @date : 2020/6/13 10:31
 */
public class PorscheDecorator  extends CarDecorator {

    public PorscheDecorator(Car car) {
        super(car);
    }

    public void keyless() {
        System.out.println("选装无钥匙进入");
    }

    public void boss() {
        System.out.println("选装boss音响");
    }

    @Override
    public void buyCar() {
        super.buyCar();
        keyless();
        boss();
    }

}
